<template>
  <div>
    这是一个model------子组件----{{ value }}
    <button @click="hClick">子组件按钮</button>
  </div>
</template>

<script>
export default {
  name: 'VueHrSon',
  props: {
    value: {
      type: Number,
      default: 0
    }
  },
  data() {
    return {

    }
  },

  mounted() {

  },

  methods: {
    hClick() {
      this.$emit('input', this.value + 1)
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
